package common;

import java.util.Date;

public class Message {
	String contentString;
	Date date;
	Integer clientID;
	
	
	/**
	 * Make sure to use the setters to override contentString and clientID 
	 */
	public Message(){
		this.contentString = "";
		this.date = new Date();
		this.clientID = -1;
	}
	
	
	public Message(String msg, Integer clientid){
		this.contentString = msg;
		this.date = new Date();
		this.clientID = clientid;
	}

	public String getContentString() {
		return contentString;
	}

	public void setContentString(String contentString) {
		this.contentString = contentString;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Integer getClientID() {
		return clientID;
	}

	public void setClientID(Integer clientID) {
		this.clientID = clientID;
	}
	
	
}
